package com.briup.labs.mapper;

import com.briup.labs.pojo.SysRole;
import com.briup.labs.pojo.SysUser;
import com.briup.labs.pojo.SysUserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserMapper {

    //分页
    List<SysUser> all();

    //所有用户
    List<SysUser> allUser();

    //添加
    void add(SysUser sysUser);

    void addBridgeRole(SysUserRole sysUserRole);

    //修改
    void update(SysUser sysRole);

    void updateBridgeRole(SysUserRole sysUserRole);

    //删除
    void delete(Integer id);

    void deleteBridgeRole(Integer id);

    void deleteRole(Integer id);
}
